using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using Android.App;
using Android.Content;
using Android.OS;
using Android.Runtime;
using Android.Views;
using Android.Widget;

namespace Tracker.Mobile.Droid
{
    public static class Util
    {
        public static ProgressDialog CreateProgressDialog(Context context, ProgressDialogStyle style, string title, string message, bool show = true)
        {
            ProgressDialog dialog = new ProgressDialog(context);
            dialog.SetProgressStyle(style);
            dialog.SetTitle(title);
            dialog.SetMessage(message);

            if (show)
            {
                dialog.Show();
            }

            return dialog;
        }
    }
}